var express = require('express');
var router = express.Router();

const { login, addAdmins, isLogin, getAdmins, deleteAdmins, updataAdmins, getSalesPerson } = require("../controller/admins");

/**
 * login
 */
router.post('/login', login);

router.post('/islogin', isLogin);
/**
 * 管理员
 */
router.post('/addAdmins', addAdmins);

router.get('/getAdmins', getAdmins);

router.post('/deleteAdmins', deleteAdmins);

router.post('/updataAdmins', updataAdmins);
module.exports = router;
